﻿<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="Flowers.Forms.AddCommentPage">
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Label Text="Add comment"
               FontSize="Large"
               Style="{StaticResource SecondaryPageTitleStyle}"/>

        <Frame Padding="12"
               Grid.Row="1">
            <BoxView BackgroundColor="#FFAAAAAA" />
        </Frame>

        <Editor Grid.Row="1"
                x:Name="CommentText" />

        <Button Text="Save comment"
                x:Name="SaveCommentButton"
                Style="{StaticResource ButtonStyle}"
                Grid.Row="2"
                Command="{Binding SaveCommentCommand}"
                CommandParameter="{Binding Text, Source={x:Reference CommentText}}" />
    </Grid>
</ContentPage>